package 方法的抽象和逐步求精;

public class Exercise5_4 {

	public static void reverse(int number){
		while(number != 0){
			int num = number % 10;
			System.out.print(num);
			number /= 10;
		}
	}
	
	public static void main(String[] args) {
		reverse(12345);
	}
}
